import request from '@/utils/request'

// 查询绩效考核列表
export function listCheckPerformance(query) {
  return request({
    url: '/cld/checkPerformance/list',
    method: 'get',
    params: query
  })
}

// 查询绩效考核详细
export function getCheckPerformance(performanceId) {
  return request({
    url: '/cld/checkPerformance/' + performanceId,
    method: 'get'
  })
}

// 新增绩效考核
export function addCheckPerformance(data) {
  return request({
    url: '/cld/checkPerformance',
    method: 'post',
    data: data
  })
}

// 修改绩效考核
export function updateCheckPerformance(data) {
  return request({
    url: '/cld/checkPerformance',
    method: 'put',
    data: data
  })
}

// 删除绩效考核
export function delCheckPerformance(performanceId) {
  return request({
    url: '/cld/checkPerformance/' + performanceId,
    method: 'delete'
  })
}
